<?php

function OpenSpecialShm()
{
	$file = "/etc/passwd";
	$ipc_key = 101;
	$shm_key = ftok($file, $ipc_key);
	$shm_id = shmop_open($shm_key, "w", 0, 0);
	if ($shm_id) 
	{
		print "it is already created!\n";
	} 
	else 
	{
		print 'you need to create it with shmop_open using "c" only!\n';
	}
}

OpenSpecialShm();

?>
